package com.showcai.controller.index;

import com.showcai.controller.base.WeChatBaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by Baggio on 2018-1-25.
 */
@RequestMapping("/")
@Controller
public class IndexController extends WeChatBaseController {

    @RequestMapping(value="/index")
    public ModelAndView index() {
        ModelAndView mov=new ModelAndView();
        String views="index/web/index";
        if(getIsMobile()){
            views="index/wap/index";
        }
        mov.setViewName(views);
        return mov;
    }
}
